﻿using System;
namespace ML.Entity
{
    /// <summary>
    /// 产品管理实体
    /// </summary>
    public class ProductEntity
    {
        /// <summary>
        /// 主键
        /// </summary>		
        public string Id { get; set; } = Guid.NewGuid().ToString("N");

        /// <summary>
        /// 产品分类Id
        /// </summary>		
        public string CategoryId { get; set; }

        /// <summary>
        /// 商户Id
        /// </summary>		
        public string MerchantId { get; set; }

        /// <summary>
        /// 产品名称
        /// </summary>		
        public string Name { get; set; }

        /// <summary>
        /// 产品预览图
        /// </summary>		
        public string PreviewImg { get; set; }

        /// <summary>
        /// 产品大图
        /// </summary>		
        public string Image { get; set; }

        /// <summary>
        /// 产品原价
        /// </summary>		
        public decimal OriginalPrice { get; set; }

        /// <summary>
        /// 产品折扣价
        /// </summary>		
        public decimal DiscountPrice { get; set; }

        /// <summary>
        /// 产品说明
        /// </summary>		
        public string Description { get; set; }

        /// <summary>
        /// 产品销量
        /// </summary>		
        public int SalesVolume { get; set; }

        /// <summary>
        /// 产品好评率
        /// </summary>		
        public decimal PraiseRate { get; set; } = 5;

        /// <summary>
        /// 产品标签
        /// </summary>		
        public string Tag { get; set; }

        /// <summary>
        /// 产品大小中份
        /// </summary>		
        public int Type { get; set; } = (int)ProductTypeStatus.other;

        /// <summary>
        /// 是否限购
        /// </summary>		
        public int IsLimitPurchase { get; set; } = (int)LimitPurchaseStatus.limitpurchase_false;

        /// <summary>
        /// 限购份数
        /// </summary>		
        public int LimitPurchaseCopies { get; set; }

        /// <summary>
        /// 上下架标识
        /// </summary>		
        public int UALMark { get; set; } = (int)UALMarkStatus.ualmark_true;

        /// <summary>
        /// 删除标识
        /// </summary>		
        public int DelMark { get; set; } = (int)DeleteStatus.delete_false;

        /// <summary>
        /// 创建时间
        /// </summary>		
        public DateTime CreateTime { get; set; } = DateTime.Now;
    }
}